package lab02.test36;

public class Test {
    public static void main(String[] args) {
        //
        //1选择合适的数据类型来存储数据
        //2执行计算
        Student[] students=new Student[5];
        //张三   本科生     90,95,100
       // 李四   本科生     80,85,90
        //王五   研究生     82,85,88
        //赵六   本科生     75,82,87
        //陈七   研究生     80,82,84
        students[0]=new Undergraduate();
        students[0].name="张三";
        students[0].type="本科生";
        students[0].scores[0]=90;
        students[0].scores[1]=95;
        students[0].scores[2]=100;

        students[1]=new Undergraduate();
        students[1].name="李四";
        students[1].type="本科生";
        students[1].scores[0]=80;
        students[1].scores[1]=85;
        students[1].scores[2]=90;

        students[0]=new Postgraduate();
        students[0].name="王五";
        students[0].type="研究生";
        students[0].scores[0]=82;
        students[0].scores[1]=85;
        students[0].scores[2]=88;

        students[0]=new Undergraduate();
        students[0].name="赵六";
        students[0].type="本科生";
        students[0].scores[0]=75;
        students[0].scores[1]=82;
        students[0].scores[2]=87;

        students[0]=new Postgraduate();
        students[0].name="陈七";
        students[0].type="研究生";
        students[0].scores[0]=80;
        students[0].scores[1]=82;
        students[0].scores[2]=84;







    }
}
